package sample.jackson

import java.util.Date

import sample.Person
import sample.retrofit.Adapter

/**
 * Created on 2015/6/21.
 *
 * @author Misty
 */
object Sample extends App {
    val p = Person(1, "ZhangSan", new Date())
    println(p)
    val s = Adapter.mapper.writeValueAsString(p)
    println(List(s))
}
